(eval-after-load): Call load-symbol-file-load-history to
authorGerd Moellmann <gerd@gnu.org>
Thu, 11 Jan 2001 14:23:25 +0000 (14:23 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 11 Jan 2001 14:23:25 +0000 (14:23 +0000)
ensure that eval-after-load works for files dumped with Emacs.

lisp/subr.el

index 2dc159a3424042106c3acf39bbbb5e2543160f1d..3a60e15b0e5182693db64493c0fdf05c3fd76bb7 100644 (file)
@@ -804,6 +804,9 @@ It does nothing if FORM is already on the list for FILE.
 FILE must match exactly.  Normally FILE is the name of a library,
 with no directory or extension specified, since that is how `load'
 is normally called."
+  ;; Make sure `load-history' contains the files dumped with Emacs
+  ;; for the case that FILE is one of the files dumped with Emacs.
+  (load-symbol-file-load-history)
   ;; Make sure there is an element for FILE.
   (or (assoc file after-load-alist)
       (setq after-load-alist (cons (list file) after-load-alist)))